<?php include 'heard.htm';?>
<div id="content">
	<div class="container">
		<div class="row">
			<?php include 'left.htm';?>
			<div class="span9">
				<h1 class="page-title">
					<i class="icon-home"></i>
					轴承型号信息下单
				</h1>
				<div class="widget">
					<div class="widget-header">
						<i class="icon-th-list"></i>
						<h3>信息填写</h3>
					</div> <!-- /widget-header -->
					<div class="widget-content">
						<form name="example" id="example" action="addproduction.php" method="post" enctype="multipart/form-data">
	                        <fieldset>
							<div class="control-group warning">
								<label for="inputWarning" class="control-label">轴承型号：</label>
								<div class="controls">
								  <input type="text" id="p_no" name="p_no" value="<?php echo $info['p_no']?>">
								</div>
								
								<label for="inputWarning" class="control-label"  style="padding-top: 5px;">完成时间：</label>
							 	<div class="example-container">
									<div>
								 		<input type="text" name="end_date_time" id="end_date_time" value="<?php if($info['end_date_time']!=''): echo date('Y-m-d',$info['end_date_time']);else: echo '';endif;?>" />
									</div>
								</div>
							 </div>
							 
							  <div class="control-group warning">
								<label for="inputWarning" class="control-label">生产数量：</label>
								<div class="controls">
								  	<input type="text" id="number" name="number" value="<?php echo $info['number']?>">
								</div>
							 </div>
							 
							  <div class="control-group warning">
								<label for="inputWarning" class="control-label">外圈需数量：</label>
								<div class="controls">
								  	<input type="text" id="outer_ring_num" name="outer_ring_num" value="<?php echo $info['outer_ring_num']?>">
								</div>
							 </div>
							 
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">内圈需数量：</label>
								<div class="controls">
								  	<input type="text" id="inner_ring_num" name="inner_ring_num" value="<?php echo $info['inner_ring_num']?>">
								</div>
							 </div>
							 
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">滚动体需数量：</label>
								<div class="controls">
								  	<input type="text" id="rolling_element_num" name="rolling_element_num" value="<?php echo $info['rolling_element_num']?>">
								</div>
							 </div>
							 
							 <div class="control-group warning">
								<label for="inputWarning" class="control-label">保持架需数量：</label>
								<div class="controls">
								  	<input type="text" id="retainer_num" name="retainer_num" value="<?php echo $info['retainer_num']?>">
								</div>
							 </div>
							 
							   <div class="control-group">
								<label for="selectError3" class="control-label">第一加工工序</label>
								<div class="controls">
								  <select id="first_p_id" name="first_p_id">
									<option value="0">--请选择--</option>
									<?php foreach($p_data as $v):?>
									<option value="<?php echo $v['id']?>" <?php if($info['first_p_id']==$v['id']): echo 'selected';endif;?>><?php echo $v['p_name']?></option>
									<?php endforeach;?>
								  </select>
								</div>
							  </div>
							  
							  <div class="form-actions">
								<button class="btn btn-primary" type="submit">保存   数据</button>
							  </div>
							 </fieldset>
							 <input type="hidden" id="upid" name="upid" value="<?php echo $info['id']?>">
						 </form>
					</div> <!-- /widget-content -->
				</div> <!-- /widget -->
				
				<div class="plan-actions">				
					<a class="btn" href="production.php">返回  列表</a>				
				</div>
				
			</div> <!-- /span9 -->
		</div> <!-- /row -->
	</div> <!-- /container -->
</div> <!-- /content -->
<div id="footer">
	<div class="container">				
		<hr />
		<p>&copy; 2013 Vit System Contol.</p>
	</div> <!-- /container -->
</div> <!-- /footer -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script>
$('#end_date_time').datetimepicker({
	addSliderAccess: true,
	sliderAccessArgs: { touchonly: false }
});
</script>
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.flot.js"></script>
<script src="../js/jquery.flot.pie.js"></script>
<script src="../js/jquery.flot.orderBars.js"></script>
<script src="../js/jquery.flot.resize.js"></script>
<script src="../js/bootstrap.js"></script>
<script src="../js/charts/bar.js"></script>
</body>
</html>
